package com.defect.controller.basics;

import com.defect.bo.ResultBo;
import com.defect.service.basicsService.BstateService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("Bstate")
public class BStateController {
    @Resource
    private BstateService stateService;

    @GetMapping
    public ResultBo selectStateName() throws Exception {
        return new ResultBo("200","success",null,stateService.selectStateName());
    }
}
